package third.A2;

import java.util.ArrayList;
import java.util.List;

class Building {
    private String name;
    public Building(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
}
class Course {
    private String name;
    public Course(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }

}
class College {
    private List<Building> buildings;
    private List<Course> courses;

    public College() {
        buildings = new ArrayList<>();
        courses = new ArrayList<>();
    }

    public void addBuilding(Building building) {
        buildings.add(building);
    }

    public void addCourse(Course course) {
        courses.add(course);
    }
}
